import { request } from '@/utils'

/** 项目列表Api */
export const getProjectListApi = (data) => {
    return request.post({
        url: "/autoApi/lp_pc_xmk_h5",
        data
    })
}

/**项目详情Api */
export const getProjectDetailApi = (data) => {
    return request.post({
        url: "/autoApi/lp_pc_xm_detail",
        data
    })
}

/** 监控中心-获取项目下所属摄像头列表Api */
export function getCameraList(data) {
    return request.get({ url: `/hkvideo/getStatus?builderLicenceNum=${data?.builderLicenceNum}` })
}

/** 监控中心-视频监控地址Api */
export function getCameraUrl(data) {
    return request.get({ url: `/hkvideo/getPreview?cameraIndexCode=${data.cameraIndexCode}` })
}
